class CategorySummary < Gtk::VBox
  def initialize(account)
    super()
    self.pack_start(Gtk::Label.new(account.account_name))
    self.pack_start(Gtk::Label.new(Util.to_usd(account.current_balance)))
  end
end

class HomePage < Gtk::VBox
 def initialize(model, prefs)
   super()
   @model = model
   @prefs = prefs
   @prefs[:home_page_summaries].each do |cat|
     self.pack_start(CategorySummary.new(@model[cat]))
   end
 end
end
